package com.lss.study.algorithm.niuke;

import java.util.Scanner;
import java.util.TreeSet;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:21
 */
public class T4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String s = scanner.nextLine();
            handle(s);
        }
    }

    private static void handle(String s) {
        if (s.length() <= 8) {
            s = s + "00000000";
            System.out.println(s.substring(0, 8));
        } else {
            System.out.println(s.substring(0, 8));
            handle(s.substring(8, s.length()));
        }
    }
}
